﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Doves.Utilities;

namespace Doves.DataAccessLayer
{
    public interface ILink
    {
        IEnumerable<Link> GetAllLink();
        Link GetLinkById(int Id);
        bool UpdateLink(Link inCrawlerLink);
        bool InsertLink(Link inrawlerLink);
        bool IsExists(Link inLink);
        ReturnValue<bool> DelLink(int inId);
        ReturnValue<bool> DelLink(Link inCrawlerLink);
        ReturnValue<bool> IsHaveLinkNeedCrawle();
        IEnumerable<Link> GetLinkToCrawle(int inNumOfRecord = Utilities.Constants.NUM_LINK_EACH_QUERY);
    }
}
